/*
 * @Author: 徐汉卿 xuhanqing@imohoo.com
 * @Date: 2023-07-12 18:02:58
 * @LastEditors: 徐汉卿 xuhanqing@imohoo.com
 * @LastEditTime: 2023-08-30 16:16:59
 * @FilePath: /sy-app2/src/service/apiConfig.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
let baseUrlPrefix = "http://192.168.4.14:8111";
const env =
  process.env.NODE_ENV === "development" ? "development" : "production";
console.log("编译环境：", process.env.NODE_ENV);
switch (env) {
  case "development":
    // baseUrlPrefix = "http://192.168.4.14:8111";
    // baseUrlPrefix = "http://218.2.231.114:8015";
    baseUrlPrefix = "http://218.2.231.120:8200";


    break;
  case "production":
    // baseUrlPrefix = "http://192.168.4.14:8111";
    baseUrlPrefix = "http://218.2.231.120:8200";

    break;
}

const api = {
  baseUrl: baseUrlPrefix,
  //其他相关变量
};
export default api;
